package com.fiberhome.app.network.upload;

import java.util.List;

/**
 * Created by Deed on 2018/1/30.
 */

public interface MultiUploadListener {
    /**
     *
     * @param ub UploadBean
     * @param currentLength long
     * @param totalLength long
     */
    void onUpdate(UploadBean ub,long currentLength,long totalLength);

    /**
     *
     * @param ub UploadBean
     */
    void onComplete(UploadBean ub);

    /**
     *
     * @param throwable Throwable
     */
    void onFail(Throwable throwable);

    /**
     *
     * @param ubList List<UploadBean>
     */
    void onFinish(List<UploadBean> ubList);
}
